<admintpl file="header" />
<style>
    .uploadList ul li{
        list-style: none;
    }
    .uploadList ul li img{
        max-height: 90px;
    }
    .productList{
      padding: 0px;
      margin-left: 180px;
      width: 80%;
      margin-top: 30px;
    }
    .productList li {
        list-style: none;
        height: 40px;
    }
</style>
<script type="text/javascript" src="__PUBLIC__/uploadify/jquery.uploadify.min.js"></script>
<link rel="stylesheet" href="__PUBLIC__/uploadify/uploadify.css">
<link rel="stylesheet" type="text/css" href="__PUBLIC__/datetimepic/jquery.datetimepicker.css"/>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li ><a href="{:U('Time/index')}"> 收货时间 </a></li>
        <li><a href="{:U('Time/add')}">添加时间</a></li>
    </ul>
    <form action="{:U('Time/edit')}" method="post" class="form-horizontal js-ajax-forms">
        <input type="hidden" name="id" value="{$list.id}">
        <fieldset style="overflow: hidden;">
            <div class="control-group">
                <label class="control-label"> 选择类型 </label>
                <div class="controls">
                    <select name="type">
                        <option value="0">请选择</option>
                        <option id="type1" value="1">常规</option>
                        <option id="type2" value="2">其它</option>
                    </select>
                </div>
            </div>
             <div class="control-group">
                 <label class="control-label"> 开始时间 </label>
                 <div class="controls">
                     <input type="text" name="start_time" class="datetimepicker" value="{$list.start_time|default=''}">
                 </div>
             </div>
            <div class="control-group">
                 <label class="control-label"> 结束时间 </label>
                 <div class="controls">
                     <input type="text" class="datetimepicker" name="end_time" value="{$list.end_time|default=''}">
                 </div>
             </div>
        </fieldset>
        <div class="form-actions">
            <button class="btn btn-primary js-ajax-submit" type="submit">{:L("SAVE")}</button>
            <a class="btn" href="javascript:history.back(-1);">{:L('BACK')}</a>
        </div>
    </form>
</div>
<script src="__PUBLIC__/js/common.js"></script>
<script src="__PUBLIC__/datetimepic/build/jquery.datetimepicker.full.js"></script>
<script type="text/javascript">
    $('.datetimepicker').datetimepicker({
        datepicker:false,
        format:'H:i',
        step:5
    });
    var type = 'type{$list.type}';
    $("#"+type).attr('selected','selected');
</script>
</body>
</html>